package linkwechat.controller.LinkMenu;

import linkwechat.pojo.ReturnData;
import linkwechat.service.MenuService.LinkMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/LinkShow")
public class LinkMenuController {

    @Autowired
    LinkMenuService linkMenuService;

    @RequestMapping("/FristMenu")
    @ResponseBody
    public ReturnData getFristMenu(){
       return linkMenuService.getFristMenu();
    }

    @RequestMapping("/ZuoCheMenu")
    @ResponseBody
    public ReturnData getZuoCheMenu(Long menuId){
        return linkMenuService.getZuoCheMenu(menuId);
    }
}
